﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GBH.Models.Dao
{
    public class ExportPiDao
    {
        public ExportPi GetExportPiById(int exportId)
        {
            using (var db = new GBHEntities())
            {
                var export = (from e in db.ExportPis
                              where e.Id == exportId
                              select e).FirstOrDefault();
                return export;
            }
        }
    }
}